<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <jsp:directive.page import="org.springframework.beans.factory.BeanFactory"/>
<jsp:directive.page import="org.springframework.context.support.ClassPathXmlApplicationContext"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="../pagehead.jsp"%>

<%@ include file="../pagebodystart.jsp" %>
<div id="table">

Number of different servers registered is <c:out value="${fn:length(servers)}"/>
<table class="dastable">

<tbody>
<tr class="row0"><td>Server URL</td><td>Server Description</td><td>Number Of Sources Registered for Server</td><td>Server Controlled</td></tr>
<c:forEach items="${servers}" var="server" varStatus="loopStatus">
<tr class="${loopStatus.index % 2 == 0 ? 'row1' : 'row0'}">
<td><c:out value="${server.url}"/></td>
<td><c:out value="${server.description }"/></td><td><a href="listSources.jsp?serverUrl=<c:out value="${server.url }"/>"/><c:out value="${server.numberOfSources }"/></a></td>
<td><c:out value="${server.userId == 0 ? 'No':'Yes' }"/></td></tr>

</c:forEach>
</tbody>
</table>

</div>
<%@ include file="../sangerfooter.jsp"%>
</html>